import React from 'react';
import '../../../../styles/Hospital Information/UserTitle.scss'

// 对表头进行二次封装
interface Props {
    title?: string
    value?: string
    children?: any
}
function UserTitle(props: Props) {
    return (
        <div className='title'>
            <div className="left">
                <div className="shape"></div>
                <div className="text">{props.title}</div>
            </div>
            <div className="rigth">
                {/* 放置插槽 */}
                {props.children}
            </div>
        </div>
    );
}

export default UserTitle;